package currency

object Japan extends CurrencyZone {
    override type Currency = Yen


    abstract class Yen extends AbstractCurrency {
        override def designation: String = "JPY"
    }

    override def make(x: Long): Yen = new Yen {
        override val amount: Long = x
    }

    val Yen = make(1)
    // 定义在属性Yen 下面 不然会报错
    override val CurrencyUnit: Yen = Yen
}
